@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #2563eb;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --background: #ffffff;
  --background-secondary: #f3f4f6;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-title {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.post-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* 文章详情页样式 */
.article {
  padding: 2rem 0;
}

.article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.article h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

.article p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.article code {
  background: var(--background-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.article pre {
  background: var(--background-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article ul, .article ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article li {
  margin-bottom: 0.5rem;
}
